﻿@model Demo_test.Models.Entity.Username
@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>
@using (Html.BeginForm("Edit", "User", FormMethod.Post))
{
    <div class="row">
        <div class="col-md-2">
            @Html.LabelFor(m => m.Name)
        </div>
        <div class="col-md-3">
            @Html.TextBoxFor(m => m.Name, new { @class = "form-control" })
        </div>
    </div>
    <br />
    <div class="row">
        <div class="col-md-2">
            @Html.LabelFor(m => m.GioiTinh)
        </div>
        <div class="col-md-3">
            @Html.RadioButtonFor(m => m.GioiTinh, "Nam", new { @checked = true })
            <label>Nam</label>
            @Html.RadioButtonFor(m => m.GioiTinh, "Nữ")
            <label>Nữ</label>
        </div>
    </div>
    <br />
    <div class="row">
        <div class="col-md-2">
            @Html.LabelFor(m => m.DienThoai)
        </div>
        <div class="col-md-3">
            @Html.TextBoxFor(m => m.DienThoai, new { @class = "form-control" })
        </div>
    </div>
    <br />
    <div class="row">
        <div class="col-md-2">
            @Html.LabelFor(m => m.Ngaysinh)
        </div>
        <div class="col-md-3">
           @Html.TextBoxFor(s => s.Ngaysinh, "{0:MM/dd/yyyy}", new { @class = "form-control datepicker" })
        </div>
    </div>
    <br />
    <div class="row">
        <div class="col-md-2">

        </div>
        <div class="col-md-3">
            <input type="submit" value="Thêm" class="btn btn-default" />
        </div>
    </div>

}
@section scripts{
    <script src="~/jquery-ui/jquery-1.11.3.min.js"></script>
    <script src="~/jquery-ui/jquery-ui.js"></script>
    <link href="~/jquery-ui/jquery-ui.min.css" rel="stylesheet" />
    <script>
            $(function () {
                $("input.datepicker").datepicker();
            });
    </script>



}
